package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @description:自定义一个mongodb的接口，往里面传数据 === Department 是定义的mongodb的表名可以换
 * @author :又菜又爱玩的→速趴塞亚锦←
 * @create :2023/5/17
 * @param  :1.8
 */
public interface DepartmentRepository  extends MongoRepository<Department,String> {
    /**
     *                             * 医院编号+科室编号 联合查询
     *                             * String hoscode = department.getHoscode();
     *                             * String depcode = department.getDepcode();==(不能瞎写)（首字母大写=H）
     * @author :又菜又爱玩的→速趴塞亚锦←
     * @create :2023/5/17
     * @param  :1.8
     */
    Department findByHoscodeAndDepcode(String hoscode, String depcode);
}
